package com.javalab._7thread._1Create._2Runnable;

/**
 * 实现Runnable接口的方式编写线程类（更常用）
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("i am a thread, my name is " + Thread.currentThread().getName());
    }
}
